<?php
class LogBookModel extends Zwei_Db_Table
{
    protected $_name = "log_book";
    
    
    public function select()
    {
    	$this->setAdapter("dn");
    	$select = new Zend_Db_Table_Select($this);
        if ($this->_user_info->acl_roles_id != '1') {
            $select->where('acl_roles_id <> ?', '1');
        }
        $select->order("stamp DESC");
        return $select;
    }
    
    
    public function insert($data)
    {
        $this->setAdapter("an");
        return parent::insert($data);
    }
    
    public function update($data, $where)
    {
        $this->setAdapter("an");
        return parent::update($data, $where);
    }
    
    public function delete($where)
    {
        $this->setAdapter("an");
        return parent::delete($where);
    }
}
